﻿<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@page autoFlush="true" contentType="text/html; UTF-8"  isELIgnored="false" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <title></title>
        <link type="text/css" rel="stylesheet" media="all" href="styles/global.css" />
        <link type="text/css" rel="stylesheet" media="all" href="styles/global_color.css" /> 
    </head>
    <body class="index">
        <div class="login_box">
            <table>
                <form action="/getAdmin" method="post">

                <tr>
                    <td class="login_info">账号：</td>
                    <td colspan="2"><input name="name" type="text" class="width150" /></td>
                    <td class="login_error_info"><span class="required">30长度的字母、数字和下划线</span></td>
                </tr>
                <tr>
                    <td class="login_info">密码：</td>
                    <td colspan="2"><input name="password" type="password" class="width150" /></td>
                    <td><span class="required">30长度的字母、数字和下划线</span></td>
                </tr>
                    <tr>
                        <td class="login_info">验证码：</td>
                        <%--这里下面的一句生成验证码checkImage--%>
                        <td><input name="codenum" type="text" class="width70" /></td>

                        <td><img alt="换一张" src="code" id="validateCodeImg" onclick="changeImg()"></td>
                        <td><img alt="换一张" src="yanzhengma" id="validateCodeImg" onclick="changeImg()"></td>
                        <script type="text/javascript">
                            //刷新验证码
                            function changeImg() {
                                document.getElementById("validateCodeImg").src="/code?" + Math.random();
                            }
                        </script>


                        <%--<td><span class="required">验证码错误</span></td>--%>
                    </tr>

                    <tr>
                        <td>
                        </td>
                        <td class="login_button" colspan="2">
                            <input type="image" src="images/login_btn.png"/>
                        </td>
                        <td><span class="required">
                     <font color="red">${masgs}</font>
                     <font color="red">${loginmsg}</font>
                        </span></td>
                    </tr>

                </form>

            </table>
        </div>

    </body>
</html>
